package com.ag.lwc.action;

import javax.annotation.Resource;

import com.ag.common.BaseAction;
import com.ag.contactTree.TreeNode;
import com.ag.contactTree.service.LocalTreeService;

/**
 * OA部门树的action，获取OA的树头
 * @author user
 *
 */
public class OADeptAction extends BaseAction{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7048944611798049390L;
	@Resource(name="LocalTreeService")
	private LocalTreeService treeService;
	/**
	 * 返回到oa树的页面
	 * @return
	 */
	public String getOATreeRoot()
	{
		TreeNode node = treeService.getMedicineTreeRoot();
		this.getRequest().setAttribute("OATreeRoot", node);
		return "OATreeRoot";
	}
	


}
